package com.cskaoyan.wx.controller;

import com.cskaoyan.bean.Feedback;
import com.cskaoyan.vo.BaseRespVo;
import com.cskaoyan.wx.service.WxFeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * 功能:反馈
 * 作者:chen11
 */
@RestController
public class WxFeedbackController {
    @Autowired
    WxFeedbackService wxFeedbackService;

    @RequestMapping("wx/feedback/submit")
    public BaseRespVo SubmitFeedback(@RequestBody Feedback feedback){
        wxFeedbackService.SubmitFeedback(feedback);
        return BaseRespVo.ok();
    }
}
